package lib.bone.access.module.dict.dao;

import lib.bone.access.module.dict.entity.NepuAwardDict;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author: kindear
 */
@Repository
public interface NepuAwardDictDAO extends JpaRepository<NepuAwardDict,String> {
    /**
     * 根据三种条件进行查询
     * @param awardType
     * @param awardGrade
     * @param awardLevel
     * @return
     */
    Optional<NepuAwardDict> findByAwardTypeAndAwardGradeAndAwardLevel(
            String awardType,
            String awardGrade,
            String awardLevel
    );


}
